<template>
    <div class="rest-wrapper" v-if="props.data">
        <h6 v-if="props.data.indexType">{{ props.data.indexType }}</h6>
        <div class="cont" v-if="props.data.indexLevelDesc">
           <img :src="props.data.icon"/> {{ props.data.indexLevelDesc }}
        </div>
        <p>{{ props.data.indexDesc }}</p>
    </div>
</template>
<script setup>
import { defineProps } from 'vue';

const props = defineProps({
    data: {
        type: Object,
    }
})
</script>
<style scoped lang="less">
.rest-wrapper{
    border-radius: 25px;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255,255,.5);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    padding: 10px;
    h6{
        font-weight: normal;
        font-size: 11px;
        margin: 0;
        padding:0 0 8px 0;
        color: rgba(0, 0, 0, .7);
    }
    .cont{
        display: flex;
        align-items: center;
        font-size: 15px;
        font-weight: 500;
        font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: rgba(0, 0, 0, .75);
        img{
            margin-inline-end: 6px;
            width: 20px;
        }
    }
    p{
        padding: 0;
        margin: 0;
        font-size: 10px;
        line-height: 12px;
        margin-top: 8px;
        color: rgba(0, 0, 0, .6);
    }
}
</style>